package org.apache.solr.client.util;

import java.util.HashMap;
import java.util.Map;

import org.apache.solr.client.SolrDocument;

/**
 * A simple hashmap implementing SolrDocument
 */
public class SimpleSolrDoc implements SolrDocument
{
	public Map<String, Object> fields = new HashMap<String, Object>();
	
	public SimpleSolrDoc()
	{
		
	}

	public Map<String, Object> getSolrDocumentFields() {
		return fields;
	}
	
	public void setField( String name, Object value )
	{
		fields.put( name, value );
	}
}
